window.onload = function (ev) {
    var name = document.getElementById("name");

    var email = document.getElementById("email");
    var salary = document.getElementById("salary");
    document.getElementById("addEmpButton").onclick = function (ev1) {
        alert(name.textContent);
    }
}